package com.basker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.basker.pisces.autoconfig.EnablePiscesFramework;
import com.basker.pisces.service.annotation.IgnoreLoginContext;

/**
 * @author hangwen
 * @date 2020/12/12
 */
@SpringBootApplication
@EnablePiscesFramework
@RestController
public class ExamplesBootstrap {

    public static void main(String[] args) {
        SpringApplication.run(ExamplesBootstrap.class, args);
    }

    @IgnoreLoginContext
    @GetMapping("/ok")
    public String ok() {
        return "ok";
    }
}
